﻿<Window x:Class="AirlinePilotAcademy_WPF.UI_Administrator.Subject.SubjectToTeacherSolution"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Asignar Materia a un Docente" Height="420" Width="563" WindowStartupLocation="CenterScreen" WindowStyle="ToolWindow">
    <Window.Background>
        <ImageBrush ImageSource="/AirlinePilotAcademy_WPF;component/Images/Background.png" />
    </Window.Background>
    <Grid Height="321" VerticalAlignment="Top">

        <GroupBox x:Name="GroupBox_Teacher" Header="Docente" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Height="255" Width="257" Foreground="White">
            <Grid>
                <Label x:Name="Label_FilterTeacher" Content="Filtro:" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,9,0,0" Foreground="White"/>
                <TextBox x:Name="TextBox_FilterTeacher" HorizontalAlignment="Left" Height="23" Margin="45,13,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="195" TextChanged="TextBox_TextChangedTeacherFilter" MaxLength="20"/>
                <RadioButton x:Name="RadioButton_teacherByName" Content="Por Nombre" IsChecked="True" HorizontalAlignment="Left" Margin="40,49,0,0" VerticalAlignment="Top" Foreground="White"/>
                <RadioButton x:Name="RadioButton_teacherByAcronym" Content="Por Codigo" HorizontalAlignment="Left" Margin="40,89,0,0" VerticalAlignment="Top" Foreground="White"/>
                <RadioButton x:Name="RadioButton_teacherByCode" Content="Por sigla" HorizontalAlignment="Left" Margin="40,69,0,0" VerticalAlignment="Top" Foreground="White"/>
                <DataGrid x:Name="DataGrid_TeacherResult" IsReadOnly="True" SelectionMode="Single" HorizontalAlignment="Left" Margin="0,111,0,0" VerticalAlignment="Top" Height="112" Width="240" MouseDoubleClick="SelectTeacher" GotFocus="FocusSelectTeacher"/>

            </Grid>
        </GroupBox>
<!--
        <GroupBox x:Name="GroupBox_Subject" Header="Materia" HorizontalAlignment="Left" Margin="289,10,0,0" VerticalAlignment="Top" Height="255" Width="257" Foreground="White">
            <Grid>
                <Label x:Name="Label_FilterSubject" Content="Filtro:" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,9,0,0" Foreground="White"/>
                <TextBox x:Name="TextBox_FilterSubject" HorizontalAlignment="Left" Height="23" Margin="45,14,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="195" TextChanged="TextBox_TextChangedSubjectFilter" MaxLength="20"/>
                <RadioButton x:Name="RadioButton_subjectByName" Content="Por Nombre" IsChecked="True" HorizontalAlignment="Left" Margin="40,49,0,0" VerticalAlignment="Top" Foreground="White"/>
                <RadioButton x:Name="RadioButton_subjectByAcronym" Content="Por Codigo" HorizontalAlignment="Left" Margin="40,89,0,0" VerticalAlignment="Top" Foreground="White"/>
                <RadioButton x:Name="RadioButton_subjectByCode" Content="Por sigla" HorizontalAlignment="Left" Margin="40,69,0,0" VerticalAlignment="Top" Foreground="White"/>
                <DataGrid x:Name="DataGrid_SubjectResult" IsReadOnly="True" SelectionMode="Single" HorizontalAlignment="Left" Margin="0,111,0,0" VerticalAlignment="Top" Height="112" Width="240" MouseDoubleClick="SelectSubject" GotFocus="FocusSelectSubject"/>
            </Grid>
        </GroupBox>
-->
        <Label x:Name="Label_Teacher" Content="Docente: 'Nombre'" HorizontalAlignment="Left" Margin="11,270,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.868,0.462" Foreground="White"/>
        <Label x:Name="Label_TeacherTeaching" Content="Dicta la materia: 'Materia'" HorizontalAlignment="Left" Margin="11,296,0,-1" VerticalAlignment="Top" Foreground="White"/>

        <Label Content="Gestión:" Foreground="White" HorizontalAlignment="Left" Margin="322,270,0,0" VerticalAlignment="Top"/>
        <ComboBox x:Name="ComboBox_Gestion" HorizontalAlignment="Left" Margin="380,270,0,0" VerticalAlignment="Top" Width="166"/>

        <Label Content="Estado:" Foreground="White" HorizontalAlignment="Left" Margin="322,294,0,0" VerticalAlignment="Top"/>
        <ComboBox x:Name="ComboBox_Activity" HorizontalAlignment="Left" Margin="380,296,0,0" VerticalAlignment="Top" Width="166" SelectedValuePath="Tag" SelectedIndex="0">
            <ComboBoxItem  Content="Activo" Tag="A"/>
            <ComboBoxItem  Content="Desactivo" Tag="D"/>
        </ComboBox>
                  

        <Label Visibility="Hidden" Content="Horario:" HorizontalAlignment="Left" Margin="11,336,0,-41" VerticalAlignment="Top" RenderTransformOrigin="0.342,-0.632" Foreground="White"/>
        <Button Visibility="Hidden" x:Name="Button_Horary" Content="Nuevo Horario y aulas" Background="#FF87B42C" HorizontalAlignment="Left" Margin="69,333,0,-44" VerticalAlignment="Top" Width="198" Click="Button_Click_AsignHorary" Height="32"/>

        <Button Content="Buscar Materia" HorizontalAlignment="Left" Margin="295,10,0,0" VerticalAlignment="Top" Width="250" Click="Button_SearchSubject_Click" Height="53"/>
        
        <Button x:Name="Button_Save" Content="Guardar" Background="#FF87B42C" HorizontalAlignment="Left" Margin="391,333,0,-44" VerticalAlignment="Top" Width="75" Click="Button_Click_Save" Height="32"/>
        <Button x:Name="Button_Modify" Content="Modificar" Background="#FF87B42C" HorizontalAlignment="Left" Margin="391,333,0,-44" VerticalAlignment="Top" Width="75" Click="Button_Click_Modify" Visibility="Hidden" Height="32"/>
        <Button x:Name="Button_Close" Content="Cancelar" Background="#FF87B42C" HorizontalAlignment="Left" Margin="471,333,0,-44" VerticalAlignment="Top" Width="75" Click="Button_Click_Close" Height="32"/>
    </Grid>
</Window>
